﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Text;

namespace Jy123.Web
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Response.Write(FindData());
        }
        protected string Array() {
          DataTable dt=  Jy123.DBUtility.DbHelperSQL.Query("select [id],[Name],Parentid from dbo.User_Dict_Area where Parentid<>0").Tables[0];
          StringBuilder str = new StringBuilder();
          for (int i = 0; i < dt.Rows.Count; i++)
          {
              str.AppendFormat("'{0}_{1}_{2}',", dt.Rows[i]["id"], dt.Rows[i]["Parentid"], dt.Rows[i]["Name"]);
          }
          return str.ToString();
        }
    }
}
